package com.cf_houduan.cf_houduan.constant;

import com.cf_houduan.cf_houduan.enums.CodeAndMsgEnum;

public class BusinessException extends RuntimeException{

    private CodeAndMsgEnum exception;

    //默认构造器
    public BusinessException(){

    }

    //带有详细信息的构造器，信息存储在message中
    public BusinessException(String message) {
        super(message);
    }

    public CodeAndMsgEnum getException() {
        return exception;
    }

    public void setException(CodeAndMsgEnum exception) {
        this.exception = exception;
    }
}
